Component({
    data: {
        items: [{
            name: "1",
            value: "同意"
        } ],
        isAgreed: !1
    },
    properties: {
        modalHidden: {
            type: Boolean,
            value: !1
        },
        showCancel: {
            type: Boolean,
            value: !0
        },
        modalTitle: {
            type: String,
            value: ""
        },
        modalMsg: {
            type: String,
            value: ""
        },
        modalType: {
            type: String,
            value: ""
        }
    },
    methods: {
        moveD: function() {},
        modal_cancel: function() {
            this.setData({
                modalHidden: !0
            });
        },
        modal_confirm: function(e) {
            if (this.data.isAgreed) {
                this.modal_cancel();
                this.triggerEvent("handleConfirm");
            } else wx.showToast({
                title: "同意才能使用哦~"
            });
        },
        checkboxChange: function(e) {
            1 == e.detail.value ? this.setData({
                isAgreed: !0
            }) : this.setData({
                isAgreed: !1
            }),wx.setStorageSync("wan_hidden", e.detail.value);
        }
    }
});